package git.bankview.wl.report;

import java.util.*;
import java.text.*;
import java.sql.*;

import laya.semi.process.*;
import git.bankview.sl.report.ReportCommon;

import git.bankview.sl.db.*;

import org.apache.log4j.Logger;

public class ReportTransCreator
	implements IGenericClassActivity
{
	private static Logger log = Logger.getLogger(ReportTransCreator.class);

	public void execute(IProcessContext oCtx)
		throws Exception
	{
		String oTransid = (String)oCtx.getField("transid");
		
		oCtx.setField("transfunc", "REPORT");
		oCtx.setField("pageurl", "/report/ReportSchdList.do?sortIndexes=-1&transid=" + oTransid);
		Integer oLabelorder = new Integer(0);
		
		try
		{
			oLabelorder = new Integer(oTransid);
		}
		catch(NumberFormatException e)
		{
			log.debug("bad transid(" + oTransid + "): ", e);
		}
		
		oCtx.setField("labelorder", oLabelorder);
	}
}
